package net.jiupinshi.enums;

/**
 * @Despription: 通用枚举类
 * @Author: penghui.guo
 * @Date: 2018/11/25 14:56
 */
public class CommonEnum extends BaseEnum{

    /**
     * 结果状态
     */
    public static enum ResultStatusEnum{

        FAIL(0, "失败"),
        SUCCESS(1, "成功"),
        NOT_LOGIN(999, "未登录");

        ResultStatusEnum(int code, String desc){
            this.code = code;
            this.desc = desc;
        }
        public int code;
        public String desc;
    }

    /**
     * 通用是否枚举
     */
    public static enum ZeroOneEnum{
        NO((byte)0, "否"),
        YES((byte)1, "是");

        ZeroOneEnum(byte code, String desc){
            this.code = code;
            this.desc = desc;
        }
        public byte code;
        public String desc;
    }
}
